package com.snake.excel2java.excel.split;

public class SplitConfig {
	
	public static final String COMMA = ",";
	public static final String COLON = ":";
	public static final String SEMICOLON = ";";
	
	public static final int TWO = 2;
	
	public static int[] split(String str) {
		
		if(str.isEmpty())
			return null;
		
		String[] temp = str.split(COMMA);
		
		int[] result = new int[temp.length];
		int index = 0;
		
		while(index < temp.length)
			result[index] = Integer.parseInt(temp[index++]);
		
		return result;
	}

}
